<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="h" uri="/syzg-html"%>
<%
	request.setAttribute("ctx", request.getContextPath());
%>
<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="${ctx}/zenithsun/plugins/webUpload/webuploader.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/zenithsun/plugins/webUpload/style.css" />
	<script type="text/javascript">
	  var ctx = '<%=request.getContextPath()%>';
	  function cancelUpload(){
		  $("#pics").load(listPicsUrl + "?picTempPath=" + picTempPath);
	  }
	  function hasPics(){
		  
		  var info = $('.info').html();
		  var flag = true;
		  if(info.indexOf('共0张') > -1){
			  flag = false;
		  }else{
			  flag = true;
		  }
		  alert(info + ":" + flag);
		  return flag;
	  }
	</script>
</head>
<body>
<div id="uploader" class="wu-example">
    <div class="queueList" style="height: 320px;overflow: auto;">
        <div id="dndArea" class="placeholder">
            <div id="filePicker"></div>
            <p>或将照片拖到这里，单次最多可选300张</p>
        </div>
    </div>
    <div class="statusBar" style="display:none;">
        <div class="progress">
            <span class="text">0%</span>
            <span class="percentage"></span>
        </div><div class="info"></div>
        <div class="btns">
            <div id="filePicker2" style="line-height: 30px;"></div>
            <div class="uploadBtn" style="line-height: 30px;">开始上传</div>
            <div class="uploadCancel" onclick="cancelUpload();" style="line-height: 30px;">取消上传</div>
        </div>
    </div>
    
</div>
<script type="text/javascript" src="${ctx}/zenithsun/plugins/webUpload/webuploader.js"></script>
<script type="text/javascript" src="${ctx}/zenithsun/news/newsinfo/picUpload.js"></script>
</body>
</html>